function updateBalance(){$.getJSON("ajax/getbalance.php",(function(e){$("#balance").html(e.cash),$("#bonus_balance").html(e.bonus)}))}function updateBalanceParent(){$.getJSON("ajax/getbalance.php",(function(e){$("#balance",parent.document).html(e.cash),$("#bonus_balance",parent.document).html(e.bonus)}))}function initGameSlider(){if(numberOfSlides=$(".games-slide").length,$(".games-slider-dots").html(""),numberOfSlides>1){for($("
First
").appendTo(".games-slider-dots"),$(".games-slider-arrow").show(),i=0;i"+(i+1)+"").appendTo(".games-slider-dots");for($("
Last
").appendTo(".games-slider-dots"),$(".games-slider-dots .btn").click((function(){"gsdot_first"==$(this).attr("id")?goToGsSlide(0):"gsdot_last"==$(this).attr("id")?goToGsSlide($(".games-slide").length-1):goToGsSlide(parseInt($(this).attr("id").substr(6)))})),$(".games-slider-dots span").hide(),i=0;i<9;i++)i>=0&&ioldpos?(motion=-1.2*$(".games-slider").width(),directionClass="games-slide-right"):(motion=1.2*$(".games-slider").width(),directionClass="games-slide-left"),e<0&&(e=numberOfSlides-1),e>=numberOfSlides&&(e=0),$(".games-slider-dots span.selected").removeClass("selected"),$(".games-slider-dots span").hide(),$("#gsdot_"+e).addClass("selected"),e-4<0?init=0:e+4>=numberOfSlides?init=numberOfSlides-9:init=e-4,i=0;i<9;i++)init+i>=0&&init+i1){for(i=0;i").appendTo(".slider-dots");$(".slider-dots span").click((function(){goToSlide(parseInt($(this).attr("id").substr(5)))})),$("#sdot_0").addClass("selected"),manageControls(!0)}}function manageControls(e){clearTimeout(timeout),currentPosition=e?0:parseInt($(".slide-new").attr("id").substr(2)),$(".slide-new").removeClass("slide-new").addClass("slide-active"),timeout=setTimeout((function(){currentPosition+1==$(".slider .slide").length&&(currentPosition=-1),goToSlide(currentPosition+1)}),7e3)}function goToSlide(e){numberOfSlides=$(".slide").length,e<0&&(e=numberOfSlides-1),e>=numberOfSlides&&(e=0),$(".slider-dots span.selected").removeClass("selected"),$("#sdot_"+e).addClass("selected"),$(".slide-active").removeClass("slide-active").stop().animate({opacity:0},300,(function(){$(this).hide()})),$("#s_"+e).show(),$("#s_"+e).addClass("slide-new").stop().animate({opacity:1},300,(function(){manageControls(!1)}))}function removeDuplicateForm(){$("#p-login").length>0&&($(".login-box-trigger").remove(),$("#loginform").remove())}$(document).ready((function(){$("body").on("click",'#signup a, a[href="/?modal_reg"], [data-action="reg-show"]',(function(e){e.preventDefault(),e.stopImmediatePropagation(),window.location.href="/create-account"})),$("a[data-modal]").click((function(e){return $(this).modal({backdrop:"static",fadeDuration:250,zIndex:9999,onOpen:()=>{if(location.hash.indexOf("#openAccount")>-1){const e=window.location.hash.split("?")[1],i=e?Object.fromEntries(new URLSearchParams(e).entries()).type:void 0;i&&$(`#${i}`)?.trigger("click")}}}),!1})),$("#slider").length&&$("#slider").sliderNav(),$("#loginform").submit((function(e){$("#loginform #loginsubmit").addClass("disabled").prop("disabled",!0)}))})),$(window).load((function(){setTimeout((function(){getParameterByName("cat")||scrollToElement($(".offer_nav_wrapper").outerHeight(),!0)}),20)})),$(document).ready((function(){if("#openAccount"==location.hash){if(!$(".logged-in").length)return;$("#my-account-modal").modal(),$("#my-account-modal .modal-body").load("/index.php?page=account&content=1")}if("#openCashier"==location.hash){if(!$(".logged-in").length)return;$("#my-account-modal").modal(),$("#my-account-modal .modal-body").load("/index.php?page=withdraw&content=1")}var e={};switch("function"==typeof window.getFPHash&&getFPHash((function(i){e["details[fingerprint]"]=i})),$(".modal-header button").click((function(e){$(".modal").css("visibility","hidden"),setTimeout((function(){$(".modal").css("visibility","visible")}),1e3)})),$(".small-promo-text a").click((function(e){e.preventDefault();var i=$("top-wrapper").outerHeight()||0,t=$("[name='promoterms']");if(t.length){var s=t.offset().top-$(".offer_nav_wrapper").outerHeight();$("html, body").animate({scrollTop:s-i},1e3)}})),$("#login-trigger").click((function(){$(this).next("#login-content").slideToggle(),$(this).toggleClass("active"),$(this).hasClass("active")?$(this).find("span").html("Log in ▲"):$(this).find("span").html("Log in ▼")})),$("#bal-refresh").click((function(){updateBalance()})),$("#mg-choose-winners").length>0&&$("#mg-choose-winners").jcarousel({scroll:1,auto:2,vertical:!0,wrap:"circular"}),$("#playforreal1").click((function(e){e.preventDefault(),$("#playforreal1").hide(),$("#playforreal2").show(),$("#login-holder").show()})),$("body").on("click",".account_buttons a",(function(e){e.preventDefault(),$(".main-tabs").hide(),$(".sub-tabs").show(),$(".sub-tabs").addClass("sub-tabs--visible"),this.href.search("deposit")>-1?$(".sub-tabs").html(""):$(".sub-tabs").load(this.href+"&content=1")})),$("body").on("click","#account-tab-toolbar",(function(e){$(".sub-tabs").hide(),$(".main-tabs").show(),$(".sub-tabs").removeClass("sub-tabs--visible")})),$("body").on("click","#account-deposit",(function(e){e.preventDefault(),$(".main-tabs #account-deposit-tab").load("/index.php?page=deposit&content=1")})),$("body").on("click","#my-account-modal #account-details-tab a.open-modal",(function(e){e.preventDefault(),$("#my-account-modal .modal-body .static").load(this.href+" #maincontent")})),$("body").on("click","#account-withdraw",(function(e){e.preventDefault(),$(".main-tabs #account-withdraw-tab").load("/index.php?page=withdraw&content=1",(function(){}))})),$("body").on("click","#losslimit",(function(e){e.preventDefault(),$(".main-tabs #losslimit-tab").load("/index.php?page=losslimit&content=1",(function(){}))})),$(".cashierTrigger").click((function(e){e.preventDefault()})),$(".sub-menu ul li").removeClass("sel"),location.pathname){case"/home":$("#home").addClass("sel");break;case"/promotions":$("#promotions").addClass("sel");break;case"/banking-deposit":$("#banking").addClass("sel");break;case"/vip":$("#hellovips").addClass("sel");break;case"/support":$("#support").addClass("sel")}if("#openCashier"==location.hash||location.hash.indexOf("#openAccount")>-1){if(!$(".logged-in").length)return;setTimeout((function(){$(".profileTrigger").trigger("click")}),1e3)}"/promotions"!=location.pathname&&"/bonus"!=location.pathname||$(".promo-info div").each((function(e,i){if($(i).text().length>200){var t=jQuery.trim($(i).text()).substring(0,500)+"...";$(i).text(t)}}));var i=getCookie("language")||getParameterByName("language");i||(i="en"),"en"==i&&(i="uk"),$("#lang-img").attr("src","images/flags/"+i+".jpg")})),initSlider(),$(document).scroll((function(){$(this).scrollTop()>300?$(".offer_nav_wrapper").fadeIn():$(".offer_nav_wrapper").fadeOut()})),$(document).scroll((function(){$(this).scrollTop()>300?$(".offer_nav_wrapper").fadeIn():$(".offer_nav_wrapper").fadeOut()})),$((function(){removeDuplicateForm()}));